package com.mdd.common.mapper.order;

import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.order.OrderCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 订单课程Mapper
 * @author panweiliang
 */
@Mapper
public interface OrderCourseMapper extends IBaseMapper<OrderCourse> {

    @Select({"SELECT course_id FROM ls_order_course WHERE order_id = #{orderId} LIMIT 1"})
    Integer getCouseId(@Param("orderId") Integer orderId);

}
